package cn.com.woxitech.dev.model.gen;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WmLecturePageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WmLecturePageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPageurlIsNull() {
            addCriterion("pageUrl is null");
            return (Criteria) this;
        }

        public Criteria andPageurlIsNotNull() {
            addCriterion("pageUrl is not null");
            return (Criteria) this;
        }

        public Criteria andPageurlEqualTo(String value) {
            addCriterion("pageUrl =", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlNotEqualTo(String value) {
            addCriterion("pageUrl <>", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlGreaterThan(String value) {
            addCriterion("pageUrl >", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlGreaterThanOrEqualTo(String value) {
            addCriterion("pageUrl >=", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlLessThan(String value) {
            addCriterion("pageUrl <", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlLessThanOrEqualTo(String value) {
            addCriterion("pageUrl <=", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlLike(String value) {
            addCriterion("pageUrl like", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlNotLike(String value) {
            addCriterion("pageUrl not like", value, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlIn(List<String> values) {
            addCriterion("pageUrl in", values, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlNotIn(List<String> values) {
            addCriterion("pageUrl not in", values, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlBetween(String value1, String value2) {
            addCriterion("pageUrl between", value1, value2, "pageurl");
            return (Criteria) this;
        }

        public Criteria andPageurlNotBetween(String value1, String value2) {
            addCriterion("pageUrl not between", value1, value2, "pageurl");
            return (Criteria) this;
        }

        public Criteria andLectureidIsNull() {
            addCriterion("lectureId is null");
            return (Criteria) this;
        }

        public Criteria andLectureidIsNotNull() {
            addCriterion("lectureId is not null");
            return (Criteria) this;
        }

        public Criteria andLectureidEqualTo(String value) {
            addCriterion("lectureId =", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidNotEqualTo(String value) {
            addCriterion("lectureId <>", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidGreaterThan(String value) {
            addCriterion("lectureId >", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidGreaterThanOrEqualTo(String value) {
            addCriterion("lectureId >=", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidLessThan(String value) {
            addCriterion("lectureId <", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidLessThanOrEqualTo(String value) {
            addCriterion("lectureId <=", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidLike(String value) {
            addCriterion("lectureId like", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidNotLike(String value) {
            addCriterion("lectureId not like", value, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidIn(List<String> values) {
            addCriterion("lectureId in", values, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidNotIn(List<String> values) {
            addCriterion("lectureId not in", values, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidBetween(String value1, String value2) {
            addCriterion("lectureId between", value1, value2, "lectureid");
            return (Criteria) this;
        }

        public Criteria andLectureidNotBetween(String value1, String value2) {
            addCriterion("lectureId not between", value1, value2, "lectureid");
            return (Criteria) this;
        }

        public Criteria andNumIsNull() {
            addCriterion("num is null");
            return (Criteria) this;
        }

        public Criteria andNumIsNotNull() {
            addCriterion("num is not null");
            return (Criteria) this;
        }

        public Criteria andNumEqualTo(Integer value) {
            addCriterion("num =", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotEqualTo(Integer value) {
            addCriterion("num <>", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThan(Integer value) {
            addCriterion("num >", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("num >=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThan(Integer value) {
            addCriterion("num <", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumLessThanOrEqualTo(Integer value) {
            addCriterion("num <=", value, "num");
            return (Criteria) this;
        }

        public Criteria andNumIn(List<Integer> values) {
            addCriterion("num in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotIn(List<Integer> values) {
            addCriterion("num not in", values, "num");
            return (Criteria) this;
        }

        public Criteria andNumBetween(Integer value1, Integer value2) {
            addCriterion("num between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andNumNotBetween(Integer value1, Integer value2) {
            addCriterion("num not between", value1, value2, "num");
            return (Criteria) this;
        }

        public Criteria andTimeIsNull() {
            addCriterion("time is null");
            return (Criteria) this;
        }

        public Criteria andTimeIsNotNull() {
            addCriterion("time is not null");
            return (Criteria) this;
        }

        public Criteria andTimeEqualTo(Date value) {
            addCriterion("time =", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotEqualTo(Date value) {
            addCriterion("time <>", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThan(Date value) {
            addCriterion("time >", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("time >=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThan(Date value) {
            addCriterion("time <", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeLessThanOrEqualTo(Date value) {
            addCriterion("time <=", value, "time");
            return (Criteria) this;
        }

        public Criteria andTimeIn(List<Date> values) {
            addCriterion("time in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotIn(List<Date> values) {
            addCriterion("time not in", values, "time");
            return (Criteria) this;
        }

        public Criteria andTimeBetween(Date value1, Date value2) {
            addCriterion("time between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andTimeNotBetween(Date value1, Date value2) {
            addCriterion("time not between", value1, value2, "time");
            return (Criteria) this;
        }

        public Criteria andCreatoridIsNull() {
            addCriterion("creatorId is null");
            return (Criteria) this;
        }

        public Criteria andCreatoridIsNotNull() {
            addCriterion("creatorId is not null");
            return (Criteria) this;
        }

        public Criteria andCreatoridEqualTo(String value) {
            addCriterion("creatorId =", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridNotEqualTo(String value) {
            addCriterion("creatorId <>", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridGreaterThan(String value) {
            addCriterion("creatorId >", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridGreaterThanOrEqualTo(String value) {
            addCriterion("creatorId >=", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridLessThan(String value) {
            addCriterion("creatorId <", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridLessThanOrEqualTo(String value) {
            addCriterion("creatorId <=", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridLike(String value) {
            addCriterion("creatorId like", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridNotLike(String value) {
            addCriterion("creatorId not like", value, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridIn(List<String> values) {
            addCriterion("creatorId in", values, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridNotIn(List<String> values) {
            addCriterion("creatorId not in", values, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridBetween(String value1, String value2) {
            addCriterion("creatorId between", value1, value2, "creatorid");
            return (Criteria) this;
        }

        public Criteria andCreatoridNotBetween(String value1, String value2) {
            addCriterion("creatorId not between", value1, value2, "creatorid");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andThumburlIsNull() {
            addCriterion("thumburl is null");
            return (Criteria) this;
        }

        public Criteria andThumburlIsNotNull() {
            addCriterion("thumburl is not null");
            return (Criteria) this;
        }

        public Criteria andThumburlEqualTo(String value) {
            addCriterion("thumburl =", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlNotEqualTo(String value) {
            addCriterion("thumburl <>", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlGreaterThan(String value) {
            addCriterion("thumburl >", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlGreaterThanOrEqualTo(String value) {
            addCriterion("thumburl >=", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlLessThan(String value) {
            addCriterion("thumburl <", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlLessThanOrEqualTo(String value) {
            addCriterion("thumburl <=", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlLike(String value) {
            addCriterion("thumburl like", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlNotLike(String value) {
            addCriterion("thumburl not like", value, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlIn(List<String> values) {
            addCriterion("thumburl in", values, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlNotIn(List<String> values) {
            addCriterion("thumburl not in", values, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlBetween(String value1, String value2) {
            addCriterion("thumburl between", value1, value2, "thumburl");
            return (Criteria) this;
        }

        public Criteria andThumburlNotBetween(String value1, String value2) {
            addCriterion("thumburl not between", value1, value2, "thumburl");
            return (Criteria) this;
        }

        public Criteria andPublishurlIsNull() {
            addCriterion("publishUrl is null");
            return (Criteria) this;
        }

        public Criteria andPublishurlIsNotNull() {
            addCriterion("publishUrl is not null");
            return (Criteria) this;
        }

        public Criteria andPublishurlEqualTo(String value) {
            addCriterion("publishUrl =", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlNotEqualTo(String value) {
            addCriterion("publishUrl <>", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlGreaterThan(String value) {
            addCriterion("publishUrl >", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlGreaterThanOrEqualTo(String value) {
            addCriterion("publishUrl >=", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlLessThan(String value) {
            addCriterion("publishUrl <", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlLessThanOrEqualTo(String value) {
            addCriterion("publishUrl <=", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlLike(String value) {
            addCriterion("publishUrl like", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlNotLike(String value) {
            addCriterion("publishUrl not like", value, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlIn(List<String> values) {
            addCriterion("publishUrl in", values, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlNotIn(List<String> values) {
            addCriterion("publishUrl not in", values, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlBetween(String value1, String value2) {
            addCriterion("publishUrl between", value1, value2, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishurlNotBetween(String value1, String value2) {
            addCriterion("publishUrl not between", value1, value2, "publishurl");
            return (Criteria) this;
        }

        public Criteria andPublishidIsNull() {
            addCriterion("publishId is null");
            return (Criteria) this;
        }

        public Criteria andPublishidIsNotNull() {
            addCriterion("publishId is not null");
            return (Criteria) this;
        }

        public Criteria andPublishidEqualTo(String value) {
            addCriterion("publishId =", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidNotEqualTo(String value) {
            addCriterion("publishId <>", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidGreaterThan(String value) {
            addCriterion("publishId >", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidGreaterThanOrEqualTo(String value) {
            addCriterion("publishId >=", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidLessThan(String value) {
            addCriterion("publishId <", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidLessThanOrEqualTo(String value) {
            addCriterion("publishId <=", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidLike(String value) {
            addCriterion("publishId like", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidNotLike(String value) {
            addCriterion("publishId not like", value, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidIn(List<String> values) {
            addCriterion("publishId in", values, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidNotIn(List<String> values) {
            addCriterion("publishId not in", values, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidBetween(String value1, String value2) {
            addCriterion("publishId between", value1, value2, "publishid");
            return (Criteria) this;
        }

        public Criteria andPublishidNotBetween(String value1, String value2) {
            addCriterion("publishId not between", value1, value2, "publishid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}